home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Magazine / ActiveARexx / NetPBM-WOS / src / installosf < prev    next >
Encoding:
Text File  |  2000-07-14  |  784 b   |  32 lines

  1. #!/bin/sh
  2.  
  3. # This program takes parameters as a Netpbm make file might pass to
  4. # its $(INSTALL) program and invokes OSF1 Install with the proper
  5. # parameters to effect what the make file wants.  If your system has
  6. # OSF1 Install on it, you can just set the INSTALL variable in
  7. # Makefile.config to "installosf" and 'make install' will work for
  8. # you.
  9.  
  10. # Of course, you could also just install Ginstall and forget about this
  11. # program.
  12.  
  13. PERMISSIONS=444
  14. while [ $# -gt 0 ]; do
  15.     if [ "$1" = "-c" ]; then x=x;
  16.     elif [ "$1" = "-s" ]; then x=x;
  17.     elif [ "$1" = "-m" ]; then 
  18.         shift
  19.         PERMISSIONS=$1
  20.     elif [ ${SOURCE_FILE}x == x ]; then
  21.         SOURCE_FILE=$1
  22.     else
  23.         TARGET_DIR=$1
  24.     fi
  25.     shift;
  26. done
  27.  
  28. echo -f $TARGET_DIR -m $PERMISSIONS $SOURCE_FILE
  29.  
  30.  
  31.  
  32.